favorite_languages = {
    'jen': 'python',
    'sarah': 'c',
    'edward': 'ruby',
    'phil': 'python',
}

for key, value in favorite_languages.items():
    print(f'{key} favorite languages is {value}.')

# sorted() 函数进行排序
for key in sorted(favorite_languages.keys()):
    print(key.title() + ",, thank you for taking the poll.")